package com.zeus.service;

import com.zeus.mapper.AdminMapper;
import com.zeus.pojo.Admins;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 冯扬龙
 * @date 2021/4/22 17:04
 */
@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

//后台登录验证，拿到前端传的参数uname,password,自动会封装成admin对象,管理员不允许注册，直接手动把管理员存进数据库
    public Admins login(String uname,String pwd) {
       return adminMapper.login(uname, pwd);
    }
}
